var a = getApp();

Component({
    properties: {
        datas: {
            type: null
        },
        selected: {
            type: null
        },
        pluginName: {
            type: null
        }
    },
    data: {},
    methods: {
        callPhone: function(a) {
            var e = a.currentTarget.dataset.phone;
            wx.makePhoneCall({
                phoneNumber: e
            });
        },
        chooseDeliver: function(a) {
            var e = a.currentTarget.dataset.id;
            this.triggerEvent("chooseDeliver", e);
        },
        goToAdress: function() {
            var e = this.data.datas.lat, t = this.data.datas.lng, n = this.data.datas.deliver_name, l = a.BMapTransqqMap(parseFloat(t), parseFloat(e));
            wx.openLocation({
                latitude: l.lat,
                longitude: l.lng,
                scale: 18,
                name: n
            });
        }
    }
});